<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/content.css"/>
		<link rel="stylesheet" href="./App/Home/View/Common/css/bottom.css" />
		<link rel="stylesheet" href="./App/Home/View/Common/css/head1.css" />
		<script src="./Public/jquery-1.12.2.min.js"></script>
		<script src="./Public/Home/js/content.js"></script>
		<script src="./App/Home/View/Common/js/head1.js"></script>
		<script type="text/javascript">
			$(function(){
				//给第一个规格添加class 默认选中效果
				$('.types :first-child').eq(0).addClass('focus')
				//声明空数组 接收gaid组合
				var arr = []
//				for (var i=0;i<$('.focus').length;i++){
//						var a = $('.focus').eq(i).attr('data')
//						arr.push(a)
//				}
//				$.ajax({
//						type:"post",
//						url:"<?php echo U('checkinv')?>",
//	    				data:{combine:arr},
//	    				dataType:'json',
//	    				success:function(phpData){
//	    					inventory = phpData.inv
//	    					if(phpData.inv){
//	    						$('#inv').html(phpData.inv)
//	    					}else{
//	    						inventory = 0
//	    						$('#inv').html(0)
//	    					}
//
//	    					if(phpData.inv <=0){
//	    						$('.sale-out').show()
//	    						$('.add-to-cart').hide()
//	    						arr =[]
//	    					} else {
//	    						$('.add-to-cart').show()
//	    						$('.sale-out').hide()
//	    						arr = []
//	    					}
//	    					if(<?php echo $goodsData['sale_status']?>==2){
//	    						var price = <?php echo $goodsData['sale_price']?> + parseInt(phpData.add_price)
//	    						$('#sp').text("¥"+price)
//	    					}else{
//	    						var price = <?php echo $goodsData['market_price']?> + parseInt(phpData.add_price)
//	    						$('#mkprice').text("¥"+price)
//	    					}
//	    				}
//					});
				//选择规格
				$('.types li').click(function(){
					//给选中的规格增加class 其他默认的删除class 
					$(this).addClass('focus').siblings('li').removeClass('focus')
					//更改规格的时候 商品数量重置为1
					$('.num').html(1)
					//遍历选中的规格 取得data值  即gaid 把gaid压进数组 作为ajax数据发送
					for (var i=0;i<$('.focus').length;i++){
						var a = $('.focus').eq(i).attr('data')
						arr.push(a)
					}
					//发送ajax
					$.ajax({
						type:"post",
						url:"<?php echo U('checkinv')?>",
	    				data:{combine:arr},
	    				dataType:'json',
	    				success:function(phpData){
	    					//取得选中的规格的货品库存
	    					inv = phpData.inv
	    					//如果有的话 在页面显示具体库存
	    					if(phpData.inv){
	    						$('#inv').html(phpData.inv)
	    						//如果没有 显示库存为零
	    					}else{
	    						inv = 0
	    						$('#inv').html(0)
	    					}
							//如果库存小于等于0 显示已售罄
	    					if(phpData.inv <=0){
	    						$('.sale-out').show()
	    						$('.add-to-cart').hide()
	    						//并把用于接收gaid数组清空
	    						arr =[]
	    					//否则显示‘添加进购物车’按钮 售罄不显示
	    					} else {
	    						$('.add-to-cart').show()
	    						$('.sale-out').hide()
	    						//并把用于接收gaid数组清空
	    						arr = []
	    					}
	    					//如果该商品是促销商品的话
	    					if(<?php echo $goodsData['sale_status']?>==2){
	    						//那也就更改页面上的促销价  商品的价格等于原来的促销价加上货品的附加价格
	    						var price = <?php echo $goodsData['sale_price']?> + parseInt(phpData.add_price)
	    						$('#sp').text("¥"+price)
	    					}else{
	    						//如果商品不是促销的话 那就更改商品的市场价 原来的商品价加上货品的附加价格
	    						var price = <?php echo $goodsData['market_price']?> + parseInt(phpData.add_price)
	    						$('#mkprice').text("¥"+price)
	    					}
	    				}
					});
				})
				//点击增加商品数量按钮
				$('.plus-num').click(function(){
					//如果选中的规格小于2 那按钮不能点击
					var len = $('.focus').length
					if(len < 2)return
					//获得要添加进购物车的货品数量
					var goodsnum = parseInt($('.num').html())
					//如果数量大于货品库存 按钮就不能点
					if(goodsnum >= inv)return
					//数量自增
					goodsnum++;
					//更改数量
					$('.num').html(goodsnum)
				})
				//点击减少商品数量按钮
				$('.minus-num').click(function(){
					//获得要添加进购物车的货品数量
					var goodsnum = parseInt($('.num').html())
					//如果等于1 那按钮不能点 
					if(goodsnum == 1)return
					//如果库存为零 不能点
					if(inv == 0) return
					//数量自减
					goodsnum--;
					$('.num').html(goodsnum)
				})
				//点击“添加进购物车”
				$('.add-to-cart').click(function(){
					$('.type-chose').slideUp()
					$('#balance').show()
				})
				//点击继续购物按
				$('#keep-shopping').click(function(){
					$('.type-chose').slideDown()
					$('#balance').hide()
				})
				
				
				
				$('.description-material .title').click(function(){
					var num = $(this).index();
					$(this).addClass('cur').siblings('.title').removeClass('cur')
					$('.description-material div').eq(num).slideDown().siblings('div').slideUp()
				})
				
				$('.consult-comment .title').click(function(){
					var num = $(this).index('.consult-comment .title');
					$(this).addClass('cur').siblings('.title').removeClass('cur')
					$('.consult-comment div').eq(num).css({display:"block"}).siblings('div').css({display:"none"})
				})
				
				$('.after-service-switch').click(function(){
					$('.after-service-content').slideToggle();
				})
				
				$('.rightsimg img').mouseover(function(){
					var num = $(this).index();
					$('.leftbimg').eq(num).show().siblings('.leftbimg').hide()
				})
				
				//点击添加商品到购物车按钮 把货品数据发送到购物车控制器的方法 组合数据 添加进session
				$('.add-to-cart').click(function(){
					var specdata = []
					for (var i=0;i<$('.focus').length;i++){
						var a = $('.focus').eq(i).attr('data')
						specdata.push(a)
					}
					//获得商品ID
					var gid = <?php echo Q('get.gid')?>;
					//获得要购买的货品数量
					var goodscount = parseInt($('.num').html())
					//发送ajax
					$.ajax({
						//提交方式为post
						type:"post",
						url:"<?php echo U('Cart/cartsess')?>",
	    				data:{combine:specdata,gid:gid,goodscount:goodscount},
	    				dataType:'json',
	    				success:function(phpData){
	    					var str = "<div id='gobuy-notempty'><div class='goods-list-wrapper'><ul class='goods-list'>"
	    					$.each(phpData.goods, function(k,v) {
	    						str +="<li class='goods-item'><a href=''><img class='goods-img' src="+v.listpic+" alt='' /></a><div class='goods-detail'><h3 class='content'><a href='index.php?m=Home&c=Content&a=index&gid="+v.id+"'>"+v.name+"</a></h3><h3 class='style'>"
	    						$.each(v.options, function(kk,vv) {
	    							str += kk+"：<span class='color'>"+vv+"</span>&nbsp;"
	    						});
	    						str += "</h3></div><div class='goods-price'><h3 class='priceandnum'><span class='price'>￥"+v.price+"</span>&nbsp;x<span class='num'>&nbsp;"+v.num+"</span></h3><a class='delete goodscardelete' sid='"+k+"' href='javascript:void(0)'>删除</a></div></li>"
	    					});
	    					str += "</ul><ul class='activity-list'><li class='activity-item'><span class='activity-name'>免运费</span><span class='activity-content'>全场免运费</span></li></ul></div><div class='gobuy-notempty-footer'><h3><a href='<?php echo U('Cart/index')?>'>去购物车结算</a></h3></div></div>"
	    					$('.gobuy-wrapper').html(str)
	    					//头部购物车显示购物车商品数量
	    					$('#cart-num').html(phpData.total_rows)
	    					//提示购物车有多少商品
	    					$('#goodsnum').html(phpData.total_rows)
	    				}
					});
					
				})
			})
		</script>
	</head>
	<body>
		
		
<div class="yoho_header">
		<div id="header_top">
			<div class="left_part">
				<a href="http://127.0.0.1/YOHO/index.php?m=Home&c=Index&a=index">YOHO!有货</a>
			</div>
			<div class="right_part">
				<div class="login_box">
					                
					<span id="hi">Hi~admin</span>
					<a id="logout" href="http://127.0.0.1/YOHO/index.php?m=Home&c=Login&a=logout">[退出]</a>
									</div>
				<div class="tag_list_wrapper">
					<ul class="tag_list">
						<li class="tag_item myyoho">
														<a id="Myyouhuo" href="http://127.0.0.1/YOHO/index.php?m=Home&c=Login&a=index">MY有货</a>
							
               							<span class="icon-bottomarrow"></span>
						</li>
						<li class="tag_item myorder">
							<span class="icon-papers"></span>
							<a href="">我的订单</a>
						</li>
						<li class="tag_item mycollect">
							<span class="icon-heart"></span>
							<a href="">我的收藏</a>
							
						</li>
						<li class="tag_item message">
							<span class="icon-mail"></span>
							<a href="">消息</a>
							
						</li>
						<li class="tag_item phone">
							<span class="icon-iphone"></span>
							<a href="">手机版</a>
							<div class="qr">
								<div class="qr-img"></div>
								<h3 class="qr-words">扫描二维码</h3>
								<h3 class="qr-words">下载有货手机客户端</h3>
								<p class="qr-more">
									<a id="moredown" href="">更多客户端下载</a>
								</p>
							</div>
						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	
	<div class="yoho_nav">
		<div class="navcontent">
			<ul class="first-nav-list">
				<li class="first-nav-item boys">
					<p class="cn boys" >
						<a  href="http://127.0.0.1/YOHO/index.php?m=Home&c=Index&a=index">男生</a>
					</p>
					<p class="en boys">
						<a  href="">BOYS</a>
					</p>
					<div class="sub-nav-wrapper">
						<ul class="sub-nav-list">
							<li class="sub-nav-item">
								<a class="soncate" href="">新品到着</a>
							</li>
							<li class="sub-nav-item">
								<a class="soncate" href="">品牌一览</a>
							</li>
																					<li class="sub-nav-item">
								<a class="secondcate soncate" href="http://127.0.0.1/YOHO/index.php?m=Home&c=list&a=index&cid=1">服饰</a>
								<div class="third-nav-wrapper">
									<div class="third_nav">
										<div id="category05" class="categorywrapper">
																						<ul class="cate_row1 cate_row" style="border-right: 1px solid black;padding-left: 50px;">
												<li class="catetitle">
													<a href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=5">上装</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=7" >T恤</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=8" >衬衫</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=9" >POLO</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=30" >背心</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=31" >卫衣</a>
												</li>
																							</ul>
																						<ul class="cate_row1 cate_row" style="border-right: 1px solid black;padding-left: 50px;">
												<li class="catetitle">
													<a href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=6">下装</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=11" >短裤</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=12" >牛仔裤</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=13" >休闲裤</a>
												</li>
																							</ul>
																						
											
										</div>
										<!--<div class="showdetail">
											<a href="">
												<img src="./Public/Home/images/02922e55f8c84de3a8dc72d03b48238ff8.jpg" alt="" />
											</a>
											<a  class="title" href="">热门小物优选</a>
										</div>-->
									</div>
								</div>
							</li>
														<li class="sub-nav-item">
								<a class="secondcate soncate" href="http://127.0.0.1/YOHO/index.php?m=Home&c=list&a=index&cid=2">鞋履</a>
								<div class="third-nav-wrapper">
									<div class="third_nav">
										<div id="category05" class="categorywrapper">
																						<ul class="cate_row1 cate_row" style="border-right: 1px solid black;padding-left: 50px;">
												<li class="catetitle">
													<a href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=14">鞋靴</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=15" >休闲/运动鞋</a>
												</li>
																							</ul>
																						
											
										</div>
										<!--<div class="showdetail">
											<a href="">
												<img src="./Public/Home/images/02922e55f8c84de3a8dc72d03b48238ff8.jpg" alt="" />
											</a>
											<a  class="title" href="">热门小物优选</a>
										</div>-->
									</div>
								</div>
							</li>
														<li class="sub-nav-item">
								<a class="secondcate soncate" href="http://127.0.0.1/YOHO/index.php?m=Home&c=list&a=index&cid=3">包袋</a>
								<div class="third-nav-wrapper">
									<div class="third_nav">
										<div id="category05" class="categorywrapper">
																						<ul class="cate_row1 cate_row" style="border-right: 1px solid black;padding-left: 50px;">
												<li class="catetitle">
													<a href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=16">包</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=17" >双肩包</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=18" >手拎包/单肩包</a>
												</li>
																							</ul>
																						
											
										</div>
										<!--<div class="showdetail">
											<a href="">
												<img src="./Public/Home/images/02922e55f8c84de3a8dc72d03b48238ff8.jpg" alt="" />
											</a>
											<a  class="title" href="">热门小物优选</a>
										</div>-->
									</div>
								</div>
							</li>
														<li class="sub-nav-item">
								<a class="secondcate soncate" href="http://127.0.0.1/YOHO/index.php?m=Home&c=list&a=index&cid=4">配饰 · 其他</a>
								<div class="third-nav-wrapper">
									<div class="third_nav">
										<div id="category05" class="categorywrapper">
																						<ul class="cate_row1 cate_row" style="border-right: 1px solid black;padding-left: 50px;">
												<li class="catetitle">
													<a href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=19">服配</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=21" >太阳镜/眼镜</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=22" >帽子</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=23" >袜子</a>
												</li>
																							</ul>
																						<ul class="cate_row1 cate_row" style="border-right: 1px solid black;padding-left: 50px;">
												<li class="catetitle">
													<a href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=20">首饰</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=24" >戒指</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=25" >耳钉</a>
												</li>
																							</ul>
																						<ul class="cate_row1 cate_row" style="border-right: 1px solid black;padding-left: 50px;">
												<li class="catetitle">
													<a href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=26">配饰</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=27" >皮带/腰带</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=28" >胸针/胸章</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=29" >手机链/钥匙扣</a>
												</li>
																							</ul>
																						
											
										</div>
										<!--<div class="showdetail">
											<a href="">
												<img src="./Public/Home/images/02922e55f8c84de3a8dc72d03b48238ff8.jpg" alt="" />
											</a>
											<a  class="title" href="">热门小物优选</a>
										</div>-->
									</div>
								</div>
							</li>
														<li class="sub-nav-item">
								<a class="secondcate soncate" href="http://127.0.0.1/YOHO/index.php?m=Home&c=list&a=index&cid=35">生活</a>
								<div class="third-nav-wrapper">
									<div class="third_nav">
										<div id="category05" class="categorywrapper">
																						<ul class="cate_row1 cate_row" style="border-right: 1px solid black;padding-left: 50px;">
												<li class="catetitle">
													<a href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=36">创意生活</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=37" >居家</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=38" >数码3C</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=39" >玩具娱乐</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=40" >文具</a>
												</li>
																								<li class="catedetail">
													<a class="thirdcatelink" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&cid=41" >美妆</a>
												</li>
																							</ul>
																						
											
										</div>
										<!--<div class="showdetail">
											<a href="">
												<img src="./Public/Home/images/02922e55f8c84de3a8dc72d03b48238ff8.jpg" alt="" />
											</a>
											<a  class="title" href="">热门小物优选</a>
										</div>-->
									</div>
								</div>
							</li>
							
							<li class="sub-nav-item">
								<a class="soncate" href="http://127.0.0.1/YOHO/index.php?m=Home&c=List&a=index&sid=2">SALE</a>
							</li>
						</ul>
						
					</div>
				</li>
				
				<li class="first-nav-item girls">
					<p class="cn" >
						<a  href="">女生</a>
					</p>
					<p class="en">
						<a   href="">GIRLS</a>
					</p>
				</li>
				<li class="first-nav-item kids">
					<p class="cn" >
						<a  href="">潮童</a>
					</p>
					<p class="en">
						<a   href="">KIDS</a>
					</p>
				</li>
				<li class="first-nav-item life">
					<p class="cn" >
						<a  href="">创意生活</a>
					</p>
					<p class="en">
						<a   href="">LIFE STYLE</a>
					</p>
				</li>
			</ul>
			<div class="logo">
				<a href=""></a>
			</div>
			<div class="header-tool float-right">
				<div class="search float-left searchcateboys">
					<form action="" method="get">
						<div class="searchdiv">
							<input type="search" name="" id="" value="" class="seagoods"/>
						</div>
						<a href="" class="subsea">搜索</a>
					</form>
				</div>
				<div id="miniCartBox">
					<div id="goodsnum">0</div>
					<div class="gobuy-wrapper">
												<div id="Cartdetail">
							<span id="information">
								你的购物车暂时无商品
							</span>
						</div>
						
               					</div>
					
					
				</div>
			</div>
			
			
		</div>
	</div>

		<div class="product-detail-page">
			<div class="brand-banner">
				<div class="center-content">
					<a  class="pull-left" href="">
						<img src="<?php echo $goodsData['brand_logo']?>" alt="" />
					</a>
				</div>
			</div>
			<div class="center-content">
				<div class="path-nav">
					<a href="<?php echo U('Index/index')?>">BOYS首页</a>
					<span>></span>
					<a href="<?php echo U('List/index',array('cid'=>$goodsCateFname['cid']))?>"><?php echo $goodsCateFname['cname']?></a>
					<span>></span>
					<a href="<?php echo U('List/index',array('cid'=>$goodsCateData['cid']))?>"><?php echo $goodsCateData['cname']?></a>
					<span>></span>
					<span class="goodname"><?php echo $goodsData['gname']?></span>
				</div>
				
				<div class="main">
					<div class="pull-left">
						<?php foreach ($albumData as $v){?>
						<div class="leftbimg">
							<img src="<?php echo $v?>" alt="" />
						</div>
						<?php }?>
						<div class="rightsimg">
							<?php foreach ($albumData as $v){?>
							<img src="<?php echo $v?>"/>
							<?php }?>
						</div>
					</div>
					<div class="pull-right">
						<p class="name">
							<?php echo $goodsData['gname']?>
							<span class="sale-tip" ><?php echo $goodsData['sale_tip']?></span>
						</p>
						<a class="brandname" href=""><?php echo $goodsData['brand_name']?></a>
						<?php if($goodsData['sale_price'] == 0){?>
                
						<p class="market-price" >
							<span class="title">市场价：</span>
							<span id="mkprice" class="price" >¥<?php echo $goodsData['market_price']?></span>
						</p>
						<?php }else{?>
						<p class="market-price" >
							<span class="title">市场价：</span>
							<span style="font-size: 12px;text-decoration: line-through;color: #999;font-weight: 700;">¥<?php echo $goodsData['market_price']?></span>
						</p>
						<p class="sale-price">
							<span  style="font-size: 12px;color: #999;">促销价：</span>
							<span  id="sp" style="font-size: 22px;color: #000;font-weight: 700;">¥<?php echo $goodsData['sale_price']?></span>
						</p>
						
               <?php }?>
						<p class="vip-price">
							登录后即可查看vip价格
							<a class="login-url" href="">立即登录</a>
						</p>
						<div class="trade-content">
							<div class="type-chose">
								<?php foreach ($specData as $v){?>
								<div class="chose-type ">
									<p class="colortitle">选<?php echo $v['taname']?>：</p>
									<ul class="types">
										<?php foreach ($v['son'] as $vv){?>
										<?php if($v['taname'] == '尺码'){?>
                
										<li value="<?php echo $vv['gavalue']?>码" data="<?php echo $vv['gaid']?>"><?php echo $vv['gavalue']?>码</li>
										<?php }else{?>
										<li value="<?php echo $vv['gavalue']?>" data="<?php echo $vv['gaid']?>"><?php echo $vv['gavalue']?></li>
										
               <?php }?>
										<?php }?>
									</ul>
								</div>
								<?php }?>
								<!--<div class="chose-size">
									<p class="sizetitle">选尺码：</p>
									<div class="sizes">
										<ul class="sizesdetail">
											
											<li>37码</li>
											
											<li class="size-ruler"></li>
										</ul>
										<div class="color-size-tip">内长 22cm</div>
									</div>
								</div>-->
								<div class="invbox">
								<p  class="invtitle">库存：<span id="inv"></span></p>
								</div>
								
								<div class="chose-count ">
									<p class="countitle">选数量：</p>
									<div class="num-wraper">
										<p class="num">1</p>
										<span class="minus-plus">
											<div class="plus-num">
												^
											</div>
											<div class="minus-num">
												v
											</div>
										</span>
									</div>
								</div>
								
								<div class="row">
									<div class="add-to-cart">
										添加到购物车
									</div>
									<div class="sale-out">
										已售罄
									</div>
									<div class="collect-product">
										收藏商品
									</div>
								</div>
								
								<div class="share-row">
									<div class="sharetitle">
										分享商品:
									</div>
								</div>
								
								
							</div>
							
							<div id="balance">
									<p class="success-tip">商品已成功添加到购物车！</p>
									<p class="cart-total" >购物车一共有<span id="cart-num"></span>件商品</p>
									<div class="balance-btns">
										<a class="go-cart" href="<?php echo U('Cart/index')?>">
											去购物车结算>
										</a>
										<div id="keep-shopping">
											继续购物
										</div>
									</div>
							</div>
							
							
							
						</div>
					</div>
				</div>
				
				<div class="other-infos">
					<div class="description-material">
						<p class="block-title">
							<span class="title cur">商品信息 DESCRIPTION</span>
							<i class="sep">|</i>
							<span class="title ">材质洗涤 MATERIALS</span>
						</p>
						<div class="description-content">
							<div class="basic">
								<li>编号: <?php echo $goodsData['gno']?></li>
								<?php foreach ($goodsAttrData as $v){?>
								<li><?php echo $v['taname']?>: <?php echo $v['gavalue']?></li>
								<?php }?>
							</div>
						</div>
						<div class="material-content"></div>
					</div>
					
					<div class="details">
						<p class="block-title">
							<span class="title cur">尺码信息 SIZE INFO</span>
						</p>
						<?php echo $goodsData['detail'][0]['size_info']?>
						<!--<div class="size-table">
							<table>
								<tr>
									<th>吊牌尺码</th>
									<th>帮高</th>
									<th>内长</th>
								</tr>
								<tr>
									<td>36码</td>
									<td>6</td>
									<td>22</td>
								</tr>
								<tr>
									<td>36码</td>
									<td>6</td>
									<td>22</td>
								</tr>
								<tr>
									<td>36码</td>
									<td>6</td>
									<td>22</td>
								</tr>
								<tr>
									<td>36码</td>
									<td>6</td>
									<td>22</td>
								</tr>
								<tr>
									<td>36码</td>
									<td>6</td>
									<td>22</td>
								</tr>
								<tr>
									<td>36码</td>
									<td>6</td>
									<td>22</td>
								</tr>
								<tr>
									<td>36码</td>
									<td>6</td>
									<td>22</td>
								</tr>
								<tr>
									<td>36码</td>
									<td>6</td>
									<td>22</td>
								</tr>
								<tr>
									<td>36码</td>
									<td>6</td>
									<td>22</td>
								</tr>
								<tr>
									<td>36码</td>
									<td>6</td>
									<td>22</td>
								</tr>
								<tr>
									<td>36码</td>
									<td>6</td>
									<td>22</td>
								</tr>
								<tr>
									<td>36码</td>
									<td>6</td>
									<td>22</td>
								</tr>
								<tr>
									<td>36码</td>
									<td>6</td>
									<td>22</td>
								</tr>
							</table>
						</div>
						<p class="size-tip">※ 以上尺寸为实物人工测量，因测量方式不同会有1-2CM误差，相关数据仅作参考，以收到实物为准。  单位：CM</p>
						<p class="size-tip">※ 参考尺码因衣服版型、剪裁不同会有误差，仅供参考</p>
						<img class="size-img" src="./images/147.jpg"/>-->
						
					</div>
					
					<div class="details">
						<p class="block-title">
							<span class="title cur">商品详情 DETAILS</span>
						</p>
						<div class="details-html">
							<?php echo $goodsData['detail'][0]['goods_details']?>
							<!--<span>New Balance，1906年William J. Riley先生在美国马拉松之城波士顿成立，现已成为众多成功企业家和政治领袖爱用的品牌，在美国及许多国家被誉为“总统慢跑鞋”，“慢跑鞋之王”。作为一个拥有百年历史的全球知名运动品牌，New Balance不仅仅是经典优雅的代名词，同样也以其创新科技与时尚创意而广受全球粉丝的追捧。</span>
                        	<img class="lazy" src="./images/sizetable.jpg" alt="" /><br />
                        	<img class="lazy" src="./images/0254de9dc366f9e5572512c1cffff3a75b.jpg" alt="" />
                        	<img class="lazy" src="./images/02c0b167a29700015d28046d1dfa9f2347.jpg" alt="" />
                        	<img class="lazy" src="./images/01a68ae8d6d5110d0259c4c30d0f3aea0c.jpg" alt="" />
                        	<img class="lazy" src="./images/0291affd7eb9c3a17994433cf0f11cb4ef.jpg"/>
                        	<img class="lazy" src="./images/013620760e53b622cdf9663dfb7d046da6.jpg" alt="" />
                        	<img class="lazy" src="./images/0215011a883eba0d3cae43119eeb130e2b.jpg"/>
                        	<img class="lazy" src="./images/018f235cd1dafade2bd418a703864b1697.jpg" alt="" />-->
						</div>
					</div>
					
					<div class="consult-comment">
						<p class="block-title">
							<span class="title cur">顾客咨询(3)</span>
							<i class="sep">|</i>
							<span class="title ">购买评价(3)</span>
						</p>
						<div class="consults">
							<h2>顾客咨询（<span>21</span>）</h2>
							<ul class="comments-ul">
								<li>
									<div class="user-info">
										<img class="user-avatar" src="./images/boy.jpg" alt="" />
										<p>
											<span class="question">173,60KG穿什么码</span><br />
											<span class="date">2016-05-17 22:18:55</span>
										</p>
									</div>
									<p class="consult">向您推荐M号供参考,由于版型和个人穿衣风格不同，建议您参照此款商品“尺码信息”。感谢您对Yoho!Buy有货的支持，祝您购物愉快！</p>
								</li>
								<li>
									<div class="user-info">
										<img class="user-avatar" src="./images/boy.jpg" alt="" />
										<p>
											<span class="question">173,60KG穿什么码</span><br />
											<span class="date">2016-05-17 22:18:55</span>
										</p>
									</div>
									<p class="consult">向您推荐M号供参考,由于版型和个人穿衣风格不同，建议您参照此款商品“尺码信息”。感谢您对Yoho!Buy有货的支持，祝您购物愉快！</p>
								</li>
								<li>
									<div class="user-info">
										<img class="user-avatar" src="./images/boy.jpg" alt="" />
										<p>
											<span class="question">173,60KG穿什么码</span><br />
											<span class="date">2016-05-17 22:18:55</span>
										</p>
									</div>
									<p class="consult">向您推荐M号供参考,由于版型和个人穿衣风格不同，建议您参照此款商品“尺码信息”。感谢您对Yoho!Buy有货的支持，祝您购物愉快！</p>
									
								</li>
							</ul>
							
							<div class="more-wrap">
								<span class="load-more-comments">加载更多 V</span>
							</div>
							<div class="btn-wrap">
								<a class="btn" href="">我要咨询</a>
							</div>
						</div>
						<div class="comments">
							<h2>购买评价（<span>21</span>）</h2>
							<ul class="comments-ul">
								<li>
									<div class="user-info">
										<img class="user-avatar" src="./images/boy.jpg" alt="" />
										<p>
											<span class="name">吴俊</span> 购买了灰色/38码<br />
											<span class="date">2016-05-17 22:18:55</span>
										</p>
									</div>
									<p class="consult">向您推荐M号供参考,由于版型和个人穿衣风格不同，建议您参照此款商品“尺码信息”。感谢您对Yoho!Buy有货的支持，祝您购物愉快！</p>
								</li>
								<li>
									<div class="user-info">
										<img class="user-avatar" src="./images/boy.jpg" alt="" />
										<p>
											<span class="name">吴俊</span> 购买了灰色/38码<br />
											<span class="date">2016-05-17 22:18:55</span>
										</p>
									</div>
									<p class="consult">向您推荐M号供参考,由于版型和个人穿衣风格不同，建议您参照此款商品“尺码信息”。感谢您对Yoho!Buy有货的支持，祝您购物愉快！</p>
								</li>
								<li>
									<div class="user-info">
										<img class="user-avatar" src="./images/boy.jpg" alt="" />
										<p>
											<span class="name">吴俊</span> 购买了灰色/38码<br />
											<span class="date">2016-05-17 22:18:55</span>
										</p>
									</div>
									<p class="consult">向您推荐M号供参考,由于版型和个人穿衣风格不同，建议您参照此款商品“尺码信息”。感谢您对Yoho!Buy有货的支持，祝您购物愉快！</p>
								</li>
							</ul>
							
							<div class="more-wrap">
								<span class="load-more-comments">加载更多 V</span>
							</div>
							<div class="btn-wrap">
								<a class="btn" href="">我要评论</a>
							</div>
						</div>
					</div>
					
					<div class="after-service">
						
						<div class="after-service-switch">
							售后服务
						</div>
						<div class="after-service-content">
							<p class="block-title">
								<span class="title cur">售后服务 AFTER SERVICE</span>
							</p>
							<div class="img-1"></div>
							<div class="img-2"></div>
							<div class="text">
								<?php echo $goodsData['detail'][0]['after_service']?>
							</div>
						</div>
					</div>
					
					<div class="service"></div>
					
					<div class="info-block">
						<input type="hidden" name="latest-walk-count" id="latest-walk-count" value="5" />
						<p class="block-title">
							<span class="title cur">最近浏览 RECENT REVIEW</span>
						</p>
					</div>
					
				</div>

				

				
			</div>
		</div>
		
				<div class="footerbottom">
			<div class="promise">
				<div class="center-content">
					<div class="left">
						<span class="red">100%</span>
						<span class="rgbf">品牌正品</span>
					</div>
					<div class="left">
						<span class="red">7天</span>
						<span class="rgbf">无理由退货</span>
					</div>
					<div class="left">
						<span class="red">便捷</span>
						<span class="rgbf">在线服务</span>
					</div>
					<div class="right subscribe footer-right">
						<input type="text" name="subscriberBox" id="" value="订阅我们的邮件" />
					</div>
				</div>
			</div>
			<div class="footer-help">
				<div class="bottomcenter">
				<ul>
					<li>
						<p>新手指南</p>
						<p>
							<a href="">注册登录</a>
						</p>
						<p>
							<a href="">选购商品</a>
						</p>
						<p>
							<a href="">订单支付</a>
						</p>
						<p>
							<a href="">收货退款</a>
						</p>
					</li>
					<li>
						<p>会员中心</p>
						<p>
							<a href="">YOHO币</a>
						</p>
						<p>
							<a href="">会员制度</a>
						</p>
						<p>
							<a href="">账户管理</a>
						</p>
						<p>
							<a href="">密码管理</a>
						</p>
					</li>
					<li>
						<p>购物指南</p>
						<p>
							<a href="">全球购专区</a>
						</p>
						<p>
							<a href="">尺码选择</a>
						</p>
						<p>
							<a href="">发票</a>
						</p>
						<p>
							<a href="">商品咨询</a>
						</p>
					</li>
					<li>
						<p>支付方式</p>
						<p>
							<a href="">在线支付</a>
						</p>
						<p>
							<a href="">货到付款</a>
						</p>
						<p>
							<a href="">优惠券</a>
						</p>
						<p>
							<a href="">YOHO币支付</a>
						</p>
					</li>
					<li>
						<p>配送方式</p>
						<p>
							<a href="">配送时间</a>
						</p>
						<p>
							<a href="">配送范围</a>
						</p>
						<p>
							<a href="">顺丰速运</a>
						</p>
						<p>
							<a href="">商品验收与签收</a>
						</p>
					</li>
					<li>
						<p>售后服务</p>
						<p>
							<a href="">退换货政策</a>
						</p>
						<p>
							<a href="">退换货流程</a>
						</p>
						<p>
							<a href="">退款方式与时效</a>
						</p>
						<p>
							<a href="">投诉与建议</a>
						</p>
					</li>
					<li >
						<p>APP常见问题</p>
						<p>
							<a href="">IPhone版</a>
						</p>
						<p>
							<a href="">Android版</a>
						</p>
						<p>
							<a href="">wap版</a>
						</p>
						<p>
							<a href="">IPAD版</a>
						</p>
					</li>
				</ul>
					

				</div>
			</div>
			
			<div class="footer-link">
				<div class="center-content clearfix">
					<div class="leftflag">
						<a href="">
							<img src="./Public/Home/images/credit-flag3.png" alt="" />
						</a>
						<a href="">
							<img src="./Public/Home/images/isc2.png" alt="" />
						</a>
					</div>
					
					
					<div class="about-us">
						<p>
							<a href="">返回首页</a>
							<span>|</span>
							<a href="">YOHO!有货</a>
							<span>|</span>
							<a href="">新力传媒</a>
							<span>|</span>
							<a href="">联系我们</a>
							<span>|</span>
							<a href="">商家入驻</a>
							<span>|</span>
							<a href="">隐私条款</a>
							<span>|</span>
							<a href="">友情链接</a>
						</p>
						<p>
                            CopyRight © 2007-2016 南京新与力文化传播有限公司
                            <a href="">苏ICP备09011225号</a>NewPower Co. 版权所有 经营许可证编号：苏B2-20120395
						</p>
					</div>
					
				</div>
			</div>
		</div>
		

	</body>
</html>
